package com.headhunter.rmi;

import java.util.*;
import java.io.*;

import com.headhunter.server.Graduate;

public class GraduateImpl implements Graduate, Serializable {
	
	private static final long serialVersionUID = 1L;

	private String name;
	
	private String gender;
	
	private int age;
	
	private List<String> degrees = new ArrayList<String>();
	
	private List<String> qualifications = new ArrayList<String>();

	public GraduateImpl(String name, String gender, int age) {
		this.name = name;
		this.gender = gender;
		this.age = age;
	}

	public void addDegree(String degree) {
		degrees.add(degree);
	}

	public void addQualification(String qualification) {
		qualifications.add(qualification);
	}

	public String getName() {
		return name;
	}

	public String getGender() {
		return gender;
	}

	public List<String> getDegrees() {
		return degrees;
	}

	public void setDegrees(List<String> degrees) {
		this.degrees = degrees;
	}

	public List<String> getQualifications() {
		return qualifications;
	}

	public void setQualifications(List<String> qualifications) {
		this.qualifications = qualifications;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}